package com.newtouch.avmarketing.mgr.modules.avmarkrting.service;


import com.newtouch.avmarketing.mgr.modules.avmarkrting.entity.DoubleConfiguration;
import com.newtouch.avmarketing.mgr.modules.avmarkrting.model.DoubleCondition;
import com.newtouch.avmarketing.mgr.modules.avmarkrting.model.DoubleConfigurationReq;
import org.springframework.data.domain.Page;

public interface DoubleConfigurationService {

    /**
     * 新增双录步骤
     * @param doubleConfigurationReq
     * @return
     */
    int saveConfiguration(DoubleConfigurationReq doubleConfigurationReq);
    /**
     * 编辑双录步骤
     * @param doubleConfigurationReq
     * @return
     */
    int updateConfigurationById(DoubleConfigurationReq doubleConfigurationReq);

    /**
     * 通过步骤序号查找双录步骤
     * @param id
     * @return
     */
    DoubleConfiguration findByIds(Long id);

    /**
     * 通过步骤序号删除双录步骤
     * @param id
     * @return
     */
    int deleteConfiguration(Long id);

    /**
     * 条件查询带分页
     * @param doubleCondition
     * @return
     */
    Page<DoubleConfiguration> findByStepNameContaining(DoubleCondition doubleCondition);


}
